<div>
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">修改课程</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    
    <!-- /.panel -->
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <i class="fa fa-clock-o fa-fw"></i> 修改课程信息
                </div>
                <div class="panel-body">
                    <div class="row">
                        <div class="col-lg-8">
                            <form role="form" name="editcourseform">
                                <div class="form-group" ng-class="{'has-warning' : !editcourseform.couName.$valid}">
                                    <label>课程名称</label>
                                    <input name="couName" ng-model="course.couName" class="form-control" placeholder="课程名称" required>
                                </div>
                                <div class="form-group" ng-class="{'has-warning' : !editcourseform.couGrade.$valid}">
                                    <label>课程年级</label>
                                    <input name="couGrade" ng-model="course.couGrade" class="form-control" placeholder="课程年级" required >
                                </div>
                                <div class="form-group" ng-class="{'has-warning' : !editcourseform.couText.$valid}">
                                    <label>课程备注</label>
                                    <textarea name="couText" ng-model="course.couText" id="" rows="3" class="form-control" placeholder="课程备注" required></textarea>
                                </div>
                                <div class="form-group" ng-class="{'has-warning' : !editcourseform.majorId.$valid}">
                                    <label>专业编号</label>
                                    <input name="majorId" ng-model="course.majorId" class="form-control" placeholder="专业编号" required >
                                </div>
                                <div class="alert alert-danger" ng-show="showmsg" role="alert">{{alertmsg}}</div>
                                <div class="btn btn-block btn-primary" ng-disabled="!editcourseform.$valid" ng-click="editcourse()">修改</div>
                            </form>
                        </div>
                        <!-- /.col-lg-6 (nested) -->
                    </div>
                    <!-- /.row (nested) -->
                </div>
            </div>
        </div>
    </div>
</div>